package edu.zut.oop;

public class Computer {

    String name;
    String type;
    String system;
    //.....

    public Computer() {
        system = "win10";
    }

    public Computer(String name, String type) {
        system = "win10";
        this.name = name;
        this.type = type;
    }

    public Computer(String n, String t, String s) {
        system = s;
        name = n;
        type = t;
    }


    public static void main(String[] args) {

        Computer computer = new Computer();
        computer.name = "联想Y7000";
        computer.type = "游戏本";

        Computer computer2 = new Computer("华为笔记本", "商务本");

        Computer computer3 = new Computer("小米笔记本", "商务本", "win11");
    }


}
